import request from '@/utils/request'

export function fetchList(query) {
    return request({
        url: '/Txrwlist/getList',
        method: 'get',
        params: query
    })
}


//获取分组信息
export function fetchFzList() {
    return request({
        url: '/Fenzu/getList',
        method: 'get'
    })
}

export function createArticle(data) {
    return request({
        url: '/Txrwlist/getAdd',
        method: 'post',
        data
    })
}

export function updateArticle(data) {
    return request({
        url: '/Txrwlist/getEdit',
        method: 'post',
        data
    })
}

export function getZylist(data) {
    return request({
        url: '/Ziy/getList',
        method: 'post',
        data
    })
}


export function getDel(data) {
    return request({
        url: '/Txrwlist/getDel',
        method: 'post',
        data
    })
}